package com.citasgoo.admin.dao;

import com.citasgoo.admin.entity.SysMenuPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysMenuPlusDao {

    List<SysMenuPlus> selectTopMenuByUserId(Integer userId);

    List<SysMenuPlus> selectMenuByParentIdAndUserId(@Param("parentId") Integer parentId,
                                                    @Param("userId") Integer userId);

    List<SysMenuPlus> findSysMenuByType(String type);

    List<SysMenuPlus> findSysMenuByParentId(Integer parentId);

}